package com.ruoyi.business.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 企业观看视频记录对象 t_enterprise_video_record
 * 
 * @author lcz
 * @date 2025-01-19
 */
@ApiModel("企业观看视频记录对象")
public class EnterpriseVideoRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty("主键ID")
    private Long id;

    /** 企业id */
    @Excel(name = "企业id")
    @ApiModelProperty("企业id")
    private Long enterpriseId;

    /** 视频id */
    @Excel(name = "视频id")
    @ApiModelProperty("视频id")
    private Long videoId;

    /** 观看时长（秒） */
    @Excel(name = "观看时长", readConverterExp = "秒=")
    @ApiModelProperty("观看时长（秒）")
    private Long watchDuration;

    /** 观看百分比（值为0~100） */
    @Excel(name = "观看百分比", readConverterExp = "值=为0~100")
    @ApiModelProperty("观看百分比（值为0~100）")
    private Long watchPercentage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEnterpriseId(Long enterpriseId) 
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId() 
    {
        return enterpriseId;
    }
    public void setVideoId(Long videoId) 
    {
        this.videoId = videoId;
    }

    public Long getVideoId() 
    {
        return videoId;
    }
    public void setWatchDuration(Long watchDuration) 
    {
        this.watchDuration = watchDuration;
    }

    public Long getWatchDuration() 
    {
        return watchDuration;
    }
    public void setWatchPercentage(Long watchPercentage) 
    {
        this.watchPercentage = watchPercentage;
    }

    public Long getWatchPercentage() 
    {
        return watchPercentage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("enterpriseId", getEnterpriseId())
            .append("videoId", getVideoId())
            .append("watchDuration", getWatchDuration())
            .append("watchPercentage", getWatchPercentage())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
